<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://qzone.qq.com/251303704/page" prefix="p" %> 
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
  <%@ page import="dao.*"%>
  <%@ page import="enily.*" %>
  <%@ page import="seriver.*" %>
  <%@ page import="servit.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>
<body>

<form action="index.shtml" id="form1">

<div align="center">
  	<div><h3>青鸟留言板</h3></div>&nbsp;
    <div>
  <c:forEach var="li" items="${list}">
    	<div class="t c">
    	<div><c:out value="${li.id}"></c:out></div>
    	
	    	<div class="t2" align="left">&nbsp;作者：${li.author}</div>
	    	
	    	<div class="t1 tipad" align="left">${li.message }</div>
	    	<div class="gray" align="right">发表:${li.postTime}&nbsp;</div>
	    </div>
	    </c:forEach>
	    <div> 
	       <p:page pageBean="${pageBean}"/>
	    </div>
    </div>
</form>
    <div style="width:500px" align="left">&nbsp;
	    <form action="add.shtml" method="post" onSubmit="return check()">

		    <div>用 户 名</div>
		    <div style="position:relative; left:50px; top:-18px">
		    	<input type="text" name=author class="gray input" value=""/>
		    </div>
		    <div>留言信息</div>
		    <div style="position:relative; left:50px; top:-18px">
		    	<textarea  name="message" rows="5" cols="55"></textarea>
		    </div>
	    	<div align="center" style="position:relative;left:-50px;width:500px"><input type="submit" value="提 交" class="btn"/></div>

	    </form>
    </div>
  </div>

</body>
</html>